import { RoutesAlias } from '@/router/routesAlias'
import { AppRouteRecord } from '@/types/router'

const meta = {}

const pre = 'sheBeiTask-'

export default {
  path: '/sheBeiTask',
  name: 'sheBeiTask',
  redirect: {
    name: `${pre}sheBeiDangAn`
  },
  meta: { ...meta, title: '设备管理' },
  component: RoutesAlias.Home,
  children: [
    {
      path: 'sheBeiDangAn',
      name: '51100',
      meta: {
        ...meta,
        title: '设备档案'
      }
      // component: () => import('@/pages/sheBeiTask/sheBeiDangAn')
    },
    {
      path: 'weiHuSheDing/weiHuLeiXin',
      name: '51210',
      meta: {
        ...meta,
        title: '维保类型'
      }
      // component: () => import('@/pages/sheBeiTask/weiHuSheDing/weiHuLeiXin')
    },
    {
      path: 'weiHuSheDing/jiHuaWeiHuBiao',
      name: '51220',
      meta: {
        ...meta,
        title: '维保要求'
      }
      // component: () => import('@/pages/sheBeiTask/weiHuSheDing/jiHuaWeiHuBiao')
    },

    {
      path: 'weiHuSheDing/baoYangZhiLiangDengJi',
      name: '51240',
      meta: {
        ...meta,
        title: '周期设定'
      }
      // component: () => import('@/pages/sheBeiTask/weiHuSheDing/baoYangZhiLiangDengJi')
    },
    {
      path: 'weiBaoRiLi',
      name: '51300',
      meta: {
        ...meta,
        title: '维保日历'
      }
      // component: () => import('@/pages/sheBeiTask/weiBaoRiLi')
    },
    {
      path: 'weiBaoQingDan',
      name: '51800',
      meta: {
        ...meta,
        title: '维保清单'
      }
      // component: () => import('@/pages/sheBeiTask/weiBaoQingDan')
    },
    {
      path: 'zhiNengXunJian',
      name: '51700',
      meta: {
        ...meta,
        title: '智能巡检'
      }
      // component: () => import('@/pages/sheBeiTask/zhiNengXunJian')
    },
    {
      path: 'weiHuJiLu/weiXiuJiLu',
      name: '51410',
      meta: {
        ...meta,
        title: '维修记录'
      }
      // component: () => import('@/pages/sheBeiTask/weiHuJiLu/weiXiuJiLu')
    },
    {
      path: 'weiHuJiLu/jiHuaWeiBaoJiLu',
      name: '51420',
      meta: {
        ...meta,
        title: '维保记录'
      }
      // component: () => import('@/pages/sheBeiTask/weiHuJiLu/jiHuaWeiBaoJiLu')
    },
    {
      path: 'jingYanKu',
      name: '51500',
      meta: {
        ...meta,
        title: '经验库'
      }
      // component: () => import('@/pages/sheBeiTask/jingYanKu')
    },
    {
      path: 'jiHuaBianGen',
      name: `${pre}jiHuaBianGen`,
      meta: {
        ...meta,
        title: '计划变更审批'
      }
      // component: () => import('@/pages/sheBeiTask/jiHuaBianGen')
    },
    {
      path: 'kaoHeJiLu',
      name: `${pre}kaoHeJiLu`,
      meta: {
        ...meta,
        title: '考核记录'
      }
      // component: () => import('@/pages/sheBeiTask/kaoHeJiLu')
    },
    {
      path: 'shuJuFengXi',
      name: '51600',
      meta: {
        ...meta,
        title: '数据分析'
      }
      // component: () => import('@/pages/sheBeiTask/shuJuFengXi')
    },
    {
      path: 'riChangBaoXiu',
      name: '51900',
      meta: {
        ...meta,
        title: '日常报修'
      }
      // component: () => import('@/pages/sheBeiTask/riChangBaoXiu')
    },
    {
      path: 'leiXingYuanYing',
      name: '511100',
      meta: {
        ...meta,
        title: '故障类别'
      }
      // component: () => import('@/pages/sheBeiTask/leiXingYuanYing')
    },
    {
      path: 'renWuFengPei',
      name: '511000',
      meta: {
        ...meta,
        title: '任务分配'
      }
      // component: () => import('@/pages/sheBeiTask/renWuFengPei')
    },
    {
      path: 'zhuanJianLeiXing/zhuanJianLeiXingWeiHu',
      name: '511200',
      meta: {
        ...meta,
        title: '专件类型维护'
      }
      // component: () => import('@/pages/sheBeiTask/zhuanJianLeiXing/zhuanJianLeiXingWeiHu')
    },
    {
      path: 'zhuanJianLeiXing/zhuanJianXinXiWeiHu',
      name: '511300',
      meta: {
        ...meta,
        title: '专件维护'
      }
      // component: () => import('@/pages/sheBeiTask/zhuanJianLeiXing/zhuanJianXinXiWeiHu')
    },
    {
      path: 'zhuanJianLeiXing/zhuanJianShangChe',
      name: '511700',
      meta: {
        ...meta,
        title: '专件上车'
      }
      // component: () => import('@/pages/sheBeiTask/zhuanJianLeiXing/zhuanJianShangChe')
    },
    {
      path: 'zhuanJianLeiXing/zhuanJianJiShangZhuangTai',
      name: '511400',
      meta: {
        ...meta,
        title: '专件状态'
      }
      // component: () => import('@/pages/sheBeiTask/zhuanJianLeiXing/zhuanJianJiShangZhuangTai')
    },
    {
      path: 'zhuanJianLeiXing/zhuanJianLiShiJiLu',
      name: '511500',
      meta: {
        ...meta,
        title: '专件记录'
      }
      // component: () => import('@/pages/sheBeiTask/zhuanJianLeiXing/zhuanJianLiShiJiLu')
    },
    {
      path: 'zhuanJianLeiXing/zhuanJianZongLan',
      name: '511600',
      meta: {
        ...meta,
        title: '专件总览'
      }
      // component: () => import('@/pages/sheBeiTask/zhuanJianLeiXing/zhuanJianZongLan')
    }
  ]
} as AppRouteRecord
